#!/bin/bash

if [ `whoami` = "root" ];then
	echo "root用户！"
else
	echo "非root用户！"
fi

sleep 40

/bin/bash /home/westwell/welldriver/script/module_script/outstart_module/roscore_selfstart.sh &

echo "Qomolo: Roscore Started!"
sleep  5

/bin/bash /home/westwell/welldriver/script/module_script/outstart_module/monitor_selfstart.sh &

echo "Qomolo: Monitor Started!"
sleep  5

# /bin/bash /home/westwell/welldriver/script/module_script/outstart_module/gps_driver_selfstart.sh &

echo "Qomolo: GPS Driver Started!"
sleep  5

# /bin/bash /home/westwell/welldriver/script/module_script/outstart_module/hesai_lidar_selfstart.sh &

echo "Qomolo: Hesai Lidar Started!"
sleep  5

/bin/bash /home/westwell/welldriver/script/senyun_script/start_senyun_front_left.sh &

echo "Qomolo: senyun_front_left Started!"
sleep  6

/bin/bash /home/westwell/welldriver/script/senyun_script/start_senyun_front_mid.sh &

echo "Qomolo: senyun_front_mid Started!"
sleep  5

/bin/bash /home/westwell/welldriver/script/senyun_script/start_senyun_front_right.sh &

echo "Qomolo: senyun_front_right Started!"
sleep  5

/bin/bash /home/westwell/welldriver/script/senyun_script/start_senyun_top_left.sh &

echo "Qomolo: senyun_top_left Started!"
sleep  5

/bin/bash /home/westwell/welldriver/script/senyun_script/start_senyun_top_right.sh &

echo "Qomolo: senyun_top_right Started!"
sleep  5

/bin/bash /home/westwell/welldriver/script/senyun_script/start_senyun_rear_left.sh &

echo "Qomolo: senyun_rear_left Started!"
sleep  5

/bin/bash /home/westwell/welldriver/script/senyun_script/start_senyun_rear_right.sh &

echo "Qomolo: senyun_rear_right Started!"
sleep  5

/bin/bash
